package cn.kgm.template.server.entity;

import cn.kgm.template.dto.base.TemplateEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * # 技术改变自己 #
 * 活动模板,图片类型数据
 *
 * @author kapp-i
 * @date 2024-03-18 14:47:46
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "template_images")
@ApiModel(value = "TemplateImages", description = "活动模板,图片类型数据")
public class TemplateImages extends TemplateEntity<Long> {

    /**
     * 模板ID
     */
    @ApiModelProperty(value = "模板ID")
    @TableField(value = "info_id")
    private Long infoId;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    @TableField(value = "value", condition = LIKE)
    private String value;
}
